home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2409 / text0000.txt < prev   
Encoding:
Text File  |  1996-08-05  |  502 b   |  20 lines

  1. In article <f2c_9601302132@techtol.magic.mb.ca>, tahir.khawaja@techtol.magic.mb.ca (Tahir Khawaja) writes:
  2. > #include <stdio.h>
  3. > main()
  4. > {
  5. >   int num1, num2, res, ope, err;
  6. >   printf("Please input two number!\n");
  7. >   scanf("%d%d", &num1, &num2);
  8. >   printf("You entered %d and %d.\n\n", &num1, &num2);
  9.  
  10. When you put the & just before the var name you just ask for the address
  11. of the var which seems to be the big number you have...
  12.  
  13.     No problemo (Alf...)
  14.  
  15.     Proux Guillaume (Atelier Amiga)
  16.  
  17.  
  18.